<template>
    <CommonCard title="累计订单额" :value="13145">
        <template #default>
            <v-chart :option="option"></v-chart>
        </template>
        <template #footer>
            <span>昨日销售额</span>
            <span class="css-1">¥ 12768</span>
        </template>
    </CommonCard>
</template>

<script setup>
import CommonCard from './CommonCard.vue';
import { ref } from 'vue';

const option = ref({
    xAxis: {
        type: 'category',
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
        show: false,
        boundaryGap: false
    },
    yAxis: {
        type: 'value',
        show: false
    },
    grid: {
        left: 0,
        right: 0,
        top: 0,
        bottom: 0
    },
    series: [{
        data: [120, 200, 150, 80, 70, 110, 130],
        type: 'line',
        smooth: true,
        areaStyle: {
            color: 'purple'
        },
        itemStyle: {
            opacity: 0
        },
        lineStyle: {
            opacity: 0
        }
    }]
})
</script>

<style scoped>
</style>